package com.code.day16.d_lambda;

import java.util.function.Consumer;

public class TestConsumer {

    public static void main(String[] args) {

        method( s -> System.out.println(s), "hello world");

    }


    public static void method(Consumer<String> consumer, String s){
        consumer.accept(s);

    }

}
